package com.cn.springcloudwechat.model.articleAndMenu;

import org.joda.time.DateTime;

import java.util.Date;

/**
 * 视频知识
 *
 * @author: Administrator
 * @create: 2018/8/1 15:14
 */

public class YmVideoKnowledge {

    /**
     * 视频主键id
     */
    private Long videoId;
    /**
     * 视频标题
     */
    private String videoTitle;

    /**
     * 状态
     */
    private Short state;
    /**
     * 创建时间
     */
    private Date createDate;
    /**
     * 修改时间
     */
    private Date updateDate;
    /**
     * 创建时间str yyyy-MM-dd
     */
    private String strCreateDate;
    /**
     * 修改时间str yyyy-MM-dd
     */
    private String strUpdateDate;
    /**
     * 附件url
     */
    private String attachmentUrl;

    public String getAttachmentUrl() {
        return attachmentUrl;
    }

    public YmVideoKnowledge setAttachmentUrl(String attachmentUrl) {
        this.attachmentUrl = attachmentUrl;
        return this;
    }

    public Long getVideoId() {
        return videoId;
    }

    public YmVideoKnowledge setVideoId(Long videoId) {
        this.videoId = videoId;
        return this;
    }

    public String getVideoTitle() {
        return videoTitle;
    }

    public YmVideoKnowledge setVideoTitle(String videoTitle) {
        this.videoTitle = videoTitle;
        return this;
    }

    public String getStrCreateDate() {
        return strCreateDate;
    }

    public String getStrUpdateDate() {
        return strUpdateDate;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.strCreateDate = new DateTime(createDate).toString("yyyy-MM-dd hh:mm:ss");
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.strUpdateDate = new DateTime(updateDate).toString("yyyy-MM-dd hh:mm:ss");
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        return "YmVideoKnowledge{" +
                "videoId=" + videoId +
                ", videoTitle='" + videoTitle + '\'' +
                ", state=" + state +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", strCreateDate='" + strCreateDate + '\'' +
                ", strUpdateDate='" + strUpdateDate + '\'' +
                ", attachmentUrl='" + attachmentUrl + '\'' +
                '}';
    }
}
